% TEST_ID: LANG-EXPAND-0103
% CATEGORY: language/string
% 测试 string 的字符统计

function test_string_count()
x = 'hello';
y = 'l';
z = count(x, y);
assert(z == 2);

x = {'hello', 'world'};
y = {'l'};
z = count(x, y);
assert(z(1) == 2);
assert(z(2) == 1);

x = 'abc';
y = {'a', 'b'};
z = count(x, y);

assert(z == 2);